<div data-role="header">
    <a href="#myPanel" class="ui-btn ui-icon-grid ui-btn-icon-left">菜单</a>
    <h1><?=$sort?></h1>
    <a href="javascript:history.back(-1);" class="ui-btn ui-icon-back ui-btn-icon-left">返回</a>
</div>
<div data-role="main" class="ui-content">
    <?php foreach($list as $k => $v):?>
    <div data-role="collapsible">
        <h4>
            <?=$v['title']?>
            <?php if($v['create_time']+(3600*24*15) > time()):?>
                <span style="font-size: 11px;color:red">新</span>
            <?php endif;?>
        </h4>
        <ul data-role="listview">
            <?php foreach($v['par'] as $key => $value):?>
                <li>
                    <a href="<?=site_url('parameters/show?pid='.$value['id'])?>">
                        <?=$value['title']?>
                        <?php if($value['update_time']+(3600*24*18) > time()):?>
                            <span style="font-size: 11px;color:red">新</span>
                        <?php endif;?>
                    </a>
                </li>
            <?php endforeach;?>
            <?php if(empty($v['par'])):?>
                <li>没有数据</li>
            <?php endif;?>
        </ul>
    </div>
    <?php endforeach;?>
</div>